<?php

namespace api\energy\factory\electric;

use api\energy\common\Request;

/**
 * 查询电表采集器详情
 *
 * @method QueryElectricCollectorDetail setaddress(string $data) 采集器编号
 */
class QueryElectricCollectorDetail extends Request
{

    public function __construct(string $address = '')
    {
        $address && $this->setaddress($address);
    }

    public function build()
    {
        $this->setUrl("/electric/collector/detailByAddress");
        $this->setMethod('POST');

        $this->setRequestData($this->getRequestData());
    }

}